#ifndef __BSP_CAN_H__
#define __BSP_CAN_H__


#define  CAN_FILTERS_COUNT           (1u)



#define BSP_CAN_EN_PORT    (PortB)     /* OUTPUT */
#define BSP_CAN_EN_PIN     (Pin07)



/* CAN Port/Pin definition */
#define BSP_CAN_RX_PORT                   (PortB)
#define BSP_CAN_RX_PIN                    (Pin08)
#define BSP_CAN_RX_FUNC                   (Func_Can1_Rx)

/* CAN Port/Pin definition */
#define BSP_CAN_TX_PORT                   (PortB)
#define BSP_CAN_TX_PIN                    (Pin09)
#define BSP_CAN_TX_FUNC                   (Func_Can1_Tx)

/* CAN unit and clock definition */
#define BSP_CAN_UNIT                        (M4_CAN)
#define BSP_CAN_UNIT_CLOCK                  (PWC_FCG1_PERIPH_CAN)




void BspCanInit(void);

void CanTxRx(void);
void CanInitConfig(uint8 type);

#endif




